package redis.redis.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import redis.redis.entity.Shop;
import redis.redis.mapper.ShopMapper;
import redis.redis.service.IShopService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-06-09
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements IShopService {
    @Autowired
    private ShopMapper shopMapper;


    @Override
    public List<Shop> findShopAll() {
        QueryWrapper<Shop> queryWrapper = new QueryWrapper<>();
        List<Shop> list = shopMapper.selectList(queryWrapper.select());
        return list;
    }
}
